php forum
php mysql forum
php mysql smarty
 
Topic Options
#315034 - 07/29/07 03:38 PM [7.2.1] - Ajax search member
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
This is one of many ajax mods/additions that I have in the hopper. Since this was the easiest, I figured I would pump this one out first.

What this does is use the existing showmember functionality and bolt on an ajax based textbox. So regardless of how the searchmember might change in look/feel, this should just tag right along. (that is of course if there's ajax added in the future)

When you hit the 'User List', the standard stuff comes up, with an added text box:



as you start typing in the text box, a drop down list will be filled with those members who match the characters as typed.

it will refine itself as you type more characters:



you can mouse out and the pull-down will hide itself. you can mouseover the textbox again and (if there was text typed) the menu will re-appear.

Of course, you can scroll down to a specific user and click. This will take you to the members profile as the current search does for member name clicks.

There are new files added and only slight mods to the core code, so it should be easy to implement.

Read the readme, grab the .zip and have at it.

Enjoy!

SD


Attachments
2460-ReadMe.txt (42 downloads)
Description: Prolly should read this ;)

2461-ajaxSearchMember.zip (22 downloads)
Description: El zippo of the stuff.


_________________________

Top
#315036 - 07/29/07 05:58 PM Re: [7.2] - Ajax search member [Re: sirdude]
Gizmo Offline

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Looks great old timer wink
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#315106 - 08/08/07 10:35 AM Re: [7.2] - Ajax search member [Re: Gizmo]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Sure does, time to try it out smile
_________________________
- Allen wavey
- What Drives You?

Top
#315110 - 08/08/07 11:58 AM Re: [7.2] - Ajax search member [Re: AllenAyres]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
this mod comes indirectly from Allen, because he got me looking at Zend Framework 1.0 stuff. They then pointed the way to the prototype/scritaculous stuff and it then got implemented.

ty Allen wavey
_________________________

Top
#315346 - 08/22/07 01:17 AM Re: [7.2] - Ajax search member [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
i'm not satisfied with the mod.. i will be changing over to yui, which fixes some obscure safari bug for getXY and static positioning..

so, i'd hold your horses on it for now..

film @ 11
_________________________

Top
#315512 - 09/02/07 04:36 PM Re: [7.2] - Ajax search member [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Originally Posted By: sirdude
so, i'd hold your horses on it for now..


My horse got away, so I tried it anyway.

I ended up with this when editing the showusers template.

Parse error: syntax error, unexpected T_ENDFOR in /home/themeparknl/html/themepark.nl/ubb/templates/compile/%%CC^CC7^CC738990%%showmembers.tpl.php on line 183

also, the zip file has ubbt_js/ajax as a path, shouldn't that be ubb_js/java ?


Edited by blaaskaak (09/02/07 04:38 PM)
_________________________

Top
#315513 - 09/02/07 04:44 PM Re: [7.2] - Ajax search member [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
no, it should be /ubbt_js/ajax

and you mean the showmembers template ? hrm...

i can look @ the .zip and maybe see if i did a typo. i have it working fine on 2 heavily used sites..

smile
_________________________

Top
#315514 - 09/02/07 04:51 PM Re: [7.2] - Ajax search member [Re: sirdude]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
your tpl (fragment) should look something like this when done edit:

Code:
{$tbopen}
<tr>
<td align="center" class="tdheader">
{$sortlinks}
</td>
</tr>
{$tbclose}

<br />

<span style="float:right">
{$pages}
</span>

{* SD - Mod: ajax search *}
<div id="search">
	{$lang.AJAX_USER_SEARCH}
	<div id="topleft" style="display:inline;">
	<input type="text" name="user" id="user" class="form-input" autocomplete="off" />
	<div id="suggest"></div>&nbsp;</div>
</div>

<div style="clear:both"></div>


no ?

what version you applying this to ?
_________________________

Top
#315516 - 09/02/07 10:30 PM Re: [7.2] - Ajax search member [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Originally Posted By: sirdude
your tpl (fragment) should look something like this when done edit:


THat's the way it looks.

Originally Posted By: sd
what version you applying this to ?


7.2.2.blaaskaak
_________________________

Top
#315520 - 09/03/07 01:00 AM Re: [7.2] - Ajax search member [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
hrm. works fine for both boards i have it running on..

since you are quite knowledgable, i even hesitate to ask if you deleted the compiled version, so it could recompile ?

laugh

otherwise.. weirdness .. hrm... frown

must be a Dutch thing !! laugh laugh

my compiled template goes to line 176 .. i'm interested in what you have on line 183.. it's just php code.. can you paste the last part of the file in here ?

ty
_________________________

Top
#315522 - 09/03/07 09:10 AM Re: [7.2] - Ajax search member [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Originally Posted By: sirdude
since you are quite knowledgable, i even hesitate to ask if you deleted the compiled version, so it could recompile ?


I don't really bother with that most of the time smile As long as the date is newer, it will recompile itself. I've test this and never failed me yet. But in this case I happened to try that again.

Quote:
my compiled template goes to line 176 .. i'm interested in what you have on line 183.. it's just php code.. can you paste the last part of the file in here ?


<?php echo $this->_tpl_vars['userrow'][$this->_sections['user']['index']]['Reged']; ?>

</td>
</tr>

<?php endfor; endif; echo $this->_tpl_vars['tbclose']; ?>


<span style="float:right">
<?php echo $this->_tpl_vars['pages']; ?>

</span>


boldie is line 183.

I will try it on a clean install tonight, but I don't remember too much hacks on this file.
_________________________

Top
#315523 - 09/03/07 11:34 AM Re: [7.2] - Ajax search member [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
your tpl and mine are different.

i think you are missing a {/if} somewhere or whatever.. must be one of your other mods to that file?

mine has
Php Code:

<?php endfor; endif; ?>
<?php echo $this->_tpl_vars['tbclose']; ?>


<span style="float:right">
<?php echo $this->_tpl_vars['pages']; ?>

</span>


for last lines wink
_________________________

Top
#315524 - 09/03/07 01:57 PM Re: [7.2] - Ajax search member [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
Originally Posted By: sirdude
i think you are missing a {/if} somewhere or whatever.. must be one of your other mods to that file?


I don't care about one mod more or less, I kind of forgot if I adjusted anything there, but I checked with the original, and my template was as fresh as a newborn baby.

Will fix my testboard, so that it is out of the box again (gotta love wanting to have a clean testboard, and still ending up with a modded testboard wink ) and test it there.
_________________________

Top
#315527 - 09/03/07 04:08 PM Re: [7.2] - Ajax search member [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
slowly, but surely the good mods make it into core.. sooooo, less work for you over time tipsy
_________________________

Top
#315530 - 09/03/07 05:28 PM Re: [7.2] - Ajax search member [Re: sirdude]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 329
Loc: The Netherlands
okay, thanks for the tip. I'll prefix my new mods with [good mod] smile

No errors on the testboard so far.
_________________________

Top
#315531 - 09/03/07 05:56 PM Re: [7.2] - Ajax search member [Re: blaaskaak]
sirdude Offline
Enthusiast

Registered: 11/08/03
Posts: 490
Loc: SoCal
what, you think i have a time-delay bug in there ? laugh
_________________________

Top



Moderator:  sirdude 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks